﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using webappdotnet;

public partial class Admin_verwijder : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!User.IsInRole("Admin"))
        {
            Response.Redirect("Default.aspx");
        }
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Queries.DeleteOpdracht(Convert.ToInt32(Request.QueryString["id"]));
        Response.Redirect("Admin.aspx");
    }
}
